package com.nimitz.personnel.service.impl;

import com.nimitz.personnel.domain.PersonnelFactory;
import com.nimitz.personnel.mapper.PersonnelFactoryMapper;
import com.nimitz.personnel.service.PersonnelFactoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class PersonnelFactoryImpl implements PersonnelFactoryService {
    @Autowired
    private PersonnelFactoryMapper personnelFactoryMapper;


    @Override
    public List<PersonnelFactory> getProvinces() {
        return personnelFactoryMapper.getProvinces();
    }

    @Override
    public List<PersonnelFactory> getCitiesByProvinceId(Long provinceId) {
        return personnelFactoryMapper.getCitiesByProvinceId(provinceId);
    }

    @Override
    public List<PersonnelFactory> getDistrictsByCityId(Long cityId) {
        return personnelFactoryMapper.getDistrictsByCityId(cityId);
    }
}
